<?php
//支付的后台响应如：自动退款
class PayAction extends CommonAction{
	
	public function index() {
		$payment_name = $_REQUEST['payment_name']."Payment";
		$pay_file = VENDOR_PATH.'payment3/'.$payment_name.'.class.php';
		if(file_exists($pay_file) ){
			require_once($pay_file);
			$pay_method = $_REQUEST['md'];
			$payment_model = new $payment_name;	
			 if (method_exists($payment_model,$pay_method)){
			  	$res = $payment_model->$pay_method();
			  	exit;
			}
		}
	}
}
?>